package com.example.spring_config.mapper;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("xs_tab_permission")
public class Permission {
    @TableId(type = IdType.UUID)
    private String id;
    @TableField("p_id")
    private String pId;
    private String name;
    private String url;/**权限路径*/
    private String icon;/**权限图标*/
    private Integer status;/**权限状态*/
    private String type;/**权限类型*/
    private Integer porder;
    private String remarks;/**备注*/
    @TableField(exist = false)
    private List<Permission> sonePermissionList = new ArrayList<>();
}
